﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Uzai.Shop.Model;
using Uzai.Shop.BLL;

public partial class extjs3Browser : System.Web.UI.Page
{
    protected string CurrentUser = "";

    protected void Page_Load(object sender, EventArgs e)
    {
        Response.AddHeader("P3P", "CP=CAO PSA OUR");
        if (!IsPostBack)
        {
            //判断SESSION是否为空，为空则跳出
            if (Session["AdminPower"] == null || Session["Admin"] == null)
            {
                Response.Write("<script type='text/javascript'>this.parent.window.location='admin.aspx';</script>");
                Response.End();
            }
            Uzai.Shop.Model.Uzai_Admin entity = (Uzai.Shop.Model.Uzai_Admin)Session["Admin"];
            CurrentUser = entity.UserName;
        }
    }
}
